package com.bj58.mis.apm.server.statistics.controller;

import com.bj58.mis.apm.server.statistics.common.LoginUser;
import com.bj58.mis.apm.server.statistics.common.RequestContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

/**
 * @author: zhangfx
 * @create: 2018-06-26 11:10
 **/
public class BaseController<Service> {
    protected Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    protected Service service;


    @Autowired
    protected RequestContext requestContext;
    /**
     * 当前登录人OA账号
     * @return
     */
    protected String getLoginUserName(){
        return requestContext.getLoginUser().getUserName();
    }
}
